package com.ssm.promotion.core.mydlbp_nsgaiii.core;

import com.ssm.promotion.core.mydlbp_nsgaiii.encoding.vector.DTVector;
import com.ssm.promotion.core.mydlbp_nsgaiii.encoding.vector.PVVector;
import com.ssm.promotion.core.mydlbp_nsgaiii.encoding.vector.RSVector;
import sun.security.provider.MD2;

/**
 * Create by whk0710 on 2/18/2019
 * 暂定，此类为encode时需要，主要用于保存各个编码方式
 * todo
 * */
public class Variable {


    private DTVector dt;
    private RSVector rs;
    private PVVector pv;

    private MRDLBPProblem problem;

    /**
     * 默认构造器
     * */
    public Variable(){
        dt = new DTVector();
        rs = new RSVector();
        pv = new PVVector();
        problem = null;
    }

    /**
     * 传入problem的构造器
     * */
    public Variable(MRDLBPProblem problem){
        problem = this.problem;
        createRandomVector();
    }

    /**
     * 随机创建各个编码，用于初始化种群
     * */
    private void createRandomVector(){

    }

}
